package citic;

import java.io.IOException;

/**
 * 文件传输接口
 * 
 * @author shenwf10476
 * @time 2014/02/18
 */
public interface FileTransfer {

	boolean connect();

	void disconnect() throws IOException;

	boolean upload(String localPath, String remotePath);

	boolean exists(String remotePath);

	boolean download(String remotePath, String localPath) throws IOException;

	boolean renameTo(String tmpName, String newName);
}
